import axios from "./axios.js";
export const getRecommend = () => axios.get("https://apis.netstart.cn/xpc/home/recommend");
export const getSelected = () => axios.get("https://apis.netstart.cn/xpc/home/selection");
export const getHotList = () => axios.get("https://apis.netstart.cn/xpc/home/hot");
export const getDiscovery = () => axios.get("https://apis.netstart.cn/xpc/page/discovery");
export const getTravel = () => axios.get("https://apis.netstart.cn/xpc/home/cateRecommend?cateName=Vlog_%E6%97%85%E8%A1%8C%2C%E6%97%85%E6%8B%8D\u0026channel=home_channel_travel");
export const getClass = ()=>axios.get("https://apis.netstart.cn/xpc/search?type=article&kw=AE教程&sort=hot")
export const getWorks = (id)=>axios.get(`https://apis.netstart.cn/xpc/articles?category_id=${id}`)
export const getRecommendkws = ()=>axios.get("https://apis.netstart.cn/xpc/search/recommend_kws")
export const getSearchList = (kw)=>axios.get(`https://apis.netstart.cn/xpc/search?type=article&kw=${kw}&sort=hot&page&allow_download=0`)
export const getDetailList = (id)=>axios.get(`https://apis.netstart.cn/xpc/article/${id}`)
export const getCommentsList = (id)=>axios.get(`https://apis.netstart.cn/xpc/comments?resource_id=${id}`)
export const getUserInfo = (id)=>axios.get(`https://apis.netstart.cn/xpc/user/${id}`)
export const getUserWork = (id)=>axios.get(`https://apis.netstart.cn/xpc/user/${id}/articles`)
export const getUserLike = (id)=>axios.get(`https://apis.netstart.cn/xpc/user/${id}/articles-approved`)
export const getResembleList = (id)=>axios.get(`https://apis.netstart.cn/xpc/article/${id}/next`)
